<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<!DOCTYPE html>
<html>
<head>
    <title>项目图片信息</title>
    <meta name="decorator" content="form"/>
    <html:css name="bootstrap-fileinput" />
    <html:css name="simditor,jquery-select2" />
    <html:js name="jquery-select2"/>
</head>

<body class="white-bg"  formid="tEcProjectpicForm">
    <form:form id="tEcProjectpicForm" modelAttribute="data" action="${adminPath}/sbfb/tecprojectpic/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<form:hidden path="strFile"/>
		<table  class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
		   <tbody>
				<tr>
					<td  class="width-15 active text-right">	
		              <label>项目id:</label>
		            </td>
					<td class="width-35">
						<form:input path="fbillid" htmlEscape="false" class="form-control"      />
						<label class="Validform_checktip"></label>
					</td>
					<td  class="width-15 active text-right">	
		              <label>二进制文件:</label>
		            </td>
					<td class="width-35">
						<%-- <form:input path="ffile" htmlEscape="false" class="form-control"      /> --%>
						<img id="imgFile"  width="50px" height="50px"/>
						<img  src="${adminPath}/sbfb/tecprojectpic/displayAlfterImg?id=${data.id}" width="50px" height="50px"/>
						<label class="Validform_checktip"></label>
					</td>
				</tr>
				<tr>
					<td  class="width-15 active text-right">	
		              <label>文件名带后缀:</label>
		            </td>
					<td class="width-35">
						<form:input path="ffilename" htmlEscape="false" class="form-control"      />
						<label class="Validform_checktip"></label>
					</td>
					<td  class="width-15 active text-right">	
		              <label>文件名:</label>
		            </td>
					<td class="width-35">
						<form:input path="fname" htmlEscape="false" class="form-control"      />
						<label class="Validform_checktip"></label>
					</td>
				</tr>
				<tr>
					<td  class="width-15 active text-right">	
		              <label>上传时间:</label>
		            </td>
					<td class="width-35">
						<form:input path="fuploaddate" htmlEscape="false" class="form-control"      />
						<label class="Validform_checktip"></label>
					</td>
					<td  class="width-15 active text-right">	
		              <label>描述:</label>
		            </td>
					<td class="width-35">
						<form:input path="fdescription" htmlEscape="false" class="form-control"      />
						<label class="Validform_checktip"></label>
					</td>
				</tr>
				<tr>
					<td  class="width-15 active text-right">	
		              <label>单据分录序列号:</label>
		            </td>
					<td class="width-35">
						<form:input path="fseq" htmlEscape="false" class="form-control"      />
						<label class="Validform_checktip"></label>
					</td>
					<td class="width-15 active text-right"></td>
		   			<td class="width-35" ></td>
		  		</tr>
		      
		   </tbody>
		</table>   
	</form:form>
<html:js name="bootstrap-fileinput" />
<html:js name="simditor" />
<script type="text/javascript">
$(function() {
 	var img = $("#imgFile")[0];
	var f = $('#strFile').val();
	img.src='data:image/jpeg;base64,'+f ; 
	
})
</script>
</body>
</html>